package cn.bgs.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 包名称： cn.bgs.vo
 * 类名称：CellIntermediate
 *
 * @author:陈峰 创建时间：2022/6/18/15:54
 */
@Data
public class CellIntermediate {
    @ApiModelProperty(value = "小区中间表id")
    @TableId(value = "middle_id", type = IdType.AUTO)
    private Integer middleId;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getVisitorsName() {
        return visitorsName;
    }

    public void setVisitorsName(String visitorsName) {
        this.visitorsName = visitorsName;
    }

    public Integer getProtId() {
        return protId;
    }

    public void setProtId(Integer protId) {
        this.protId = protId;
    }

    public Integer getPortalId() {
        return portalId;
    }

    public void setPortalId(Integer portalId) {
        this.portalId = portalId;
    }

    public Integer getFloorId() {
        return floorId;
    }

    public void setFloorId(Integer floorId) {
        this.floorId = floorId;
    }

    public Integer getCellId() {
        return cellId;
    }

    public void setCellId(Integer cellId) {
        this.cellId = cellId;
    }

    public Integer getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Integer buildingId) {
        this.buildingId = buildingId;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    public String getVisitorsPhone() {
        return visitorsPhone;
    }

    public void setVisitorsPhone(String visitorsPhone) {
        this.visitorsPhone = visitorsPhone;
    }

    public LocalDateTime getAccessTime() {
        return accessTime;
    }

    public void setAccessTime(LocalDateTime accessTime) {
        this.accessTime = accessTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public String getVisitorsAge() {
        return visitorsAge;
    }

    public void setVisitorsAge(String visitorsAge) {
        this.visitorsAge = visitorsAge;
    }

    public Integer getMiddleId() {
        return middleId;
    }

    public void setMiddleId(Integer middleId) {
        this.middleId = middleId;
    }

    private Integer userId;
    private String visitorsName;
    private Integer protId;
    private Integer portalId;
    private Integer floorId;
    private Integer cellId;
    private Integer buildingId;
    private Integer communityId;
    private String visitorsPhone;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "访问时间")
    private LocalDateTime accessTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;
    private String visitorsAge;

}
